<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.net.ftp.Telnet</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.net.ftp.Telnet";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.net.ftp.Telnet.html" class="symbol">tango.net.ftp.Telnet</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: June 2006
<p class="sec_header">Author:</p>UWB
<dl>
<dt class="decl">class <a class="symbol _class" name="Telnet" href="./htmlsrc/tango.net.ftp.Telnet.html#L30" kind="class" beg="30" end="247">Telnet</a>; <a title="Permalink to this symbol" href="#Telnet" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L30">#</a></dt>
<dd class="ddef">
<div class="summary">Utilities for telnet-based connections.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>TelnetException</em></td><td>the type for exceptions thrown</td></tr>
<tr><td><em>socket</em></td><td>the connected socket</td></tr>
<tr><td><em>timeout</em></td><td>the timeout for socket communication</td></tr></table>
<dl>
<dt class="decl">Socket <a class="symbol _variable" name="Telnet.socket" href="./htmlsrc/tango.net.ftp.Telnet.html#L33" kind="variable" beg="33" end="33">socket</a>; <span class="attrs">[<span class="prot">protected</span>]</span> <a title="Permalink to this symbol" href="#Telnet.socket" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L33">#</a></dt>
<dd class="ddef">
<div class="summary">The control connection socket.</div></dd>
<dt class="decl">TimeSpan <a class="symbol _variable" name="Telnet.timeout" href="./htmlsrc/tango.net.ftp.Telnet.html#L36" kind="variable" beg="36" end="36">timeout</a>; <span class="attrs">[<span class="prot">protected</span>]</span> <a title="Permalink to this symbol" href="#Telnet.timeout" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L36">#</a></dt>
<dd class="ddef">
<div class="summary">The number of milliseconds to wait for socket communication or connection.</div></dd>
<dt class="decl">void <a class="symbol _function" name="Telnet.exception" href="./htmlsrc/tango.net.ftp.Telnet.html#L39" kind="function" beg="39" end="39">exception</a><span class="params">(char[] <em>msg</em>)</span>; <span class="attrs">[<span class="stc">abstract</span>]</span> <a title="Permalink to this symbol" href="#Telnet.exception" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L39">#</a></dt>
<dd class="ddef">
<div class="summary">provided by host</div></dd>
<dt class="decl">void <a class="symbol _function" name="Telnet.sendLine" href="./htmlsrc/tango.net.ftp.Telnet.html#L46" kind="function" beg="46" end="50">sendLine</a><span class="params">(void[] <em>buf</em>)</span>; <a title="Permalink to this symbol" href="#Telnet.sendLine" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L46">#</a></dt>
<dd class="ddef">
<div class="summary">Send a line over the socket.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>buf</em></td><td>the bytes to send</td></tr></table></dd>
<dt class="decl">void <a class="symbol _function" name="Telnet.sendData" href="./htmlsrc/tango.net.ftp.Telnet.html#L56" kind="function" beg="56" end="95">sendData</a><span class="params">(void[] <em>buf</em>)</span>; <a title="Permalink to this symbol" href="#Telnet.sendData" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L56">#</a></dt>
<dd class="ddef">
<div class="summary">Send data over the socket.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>buf</em></td><td>the bytes to send</td></tr></table></dd>
<dt class="decl">char[] <a class="symbol _function" name="Telnet.readLine" href="./htmlsrc/tango.net.ftp.Telnet.html#L100" kind="function" beg="100" end="155">readLine</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Telnet.readLine" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L100">#</a></dt>
<dd class="ddef">
<div class="summary">Read a CRLF terminated line from the socket.</div>
<p class="sec_header">Returns:</p>the line read</dd>
<dt class="decl">Socket <a class="symbol _function" name="Telnet.findAvailableServer" href="./htmlsrc/tango.net.ftp.Telnet.html#L162" kind="function" beg="162" end="246">findAvailableServer</a><span class="params">(char[] <em>hostname</em>, int <em>port</em>)</span>; <a title="Permalink to this symbol" href="#Telnet.findAvailableServer" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.ftp.Telnet.html#L162">#</a></dt>
<dd class="ddef">
<div class="summary">Find a server which is listening on the specified port.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>hostname</em></td><td>the hostname to lookup and connect to</td></tr>
<tr><td><em>port</em></td><td>the port to connect on</td></tr></table></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2006 UWB. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:03:55 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>